package tpdisenio2009.mvp.display;

import java.awt.event.ActionListener;
import java.util.List;
import tpdisenio2009.model.beans.FantasyTeamPlayer;

/**
 *
 * @author DeuterioX
 */
public interface QueryFantasyTeamView extends View {

    void addMakeChangesListener( ActionListener listener );
    void removeMakeChangesListener( ActionListener listener );

    void addMakeTransfersListener( ActionListener listener );
    void removeMakeTransfersListener( ActionListener listener );

    void addViewPointsByDateListener( ActionListener listener );
    void removeViewPointsByDateListener( ActionListener listener );

    void setFantasyTeamName( String fantasyTeamName );
    void setValuation( int valuation );
    void setTotalTournamentScore( int totalScore );
    void loadFantasyTeam( List<FantasyTeamPlayer> team );

    FantasyTeamPlayer getSelectedPlayer();
    FantasyTeamPlayer getPlayerByRole( String role );
    FantasyTeamPlayer getPlayerByRoleString( String role );
    void setPlayerByRole( String role, FantasyTeamPlayer player );

    void showError( String title, String error );
}
